﻿using System;

namespace FadeLang
{
    internal static class Utils
    {
        public static void OrThrows(this bool condition, string message = null) {
            if (!condition) {
                throw new Exception(message ?? "An error happened.");
            }
        }
    }
}